const app = getApp();

Page({
    data: {
        showPassword:true, //初次输入密码界面
        showContent:false,
        showEditContent:false, //是否显示编辑内容界面
        showEditPassword:false, //是否显示编辑密码界面
        showChangePassword:false,
        password:'',
        changePassword:'',
        reChangePassword:'',
        content:'这是内容'
    },
    onLoad: function () {

    },
    click_add(){

    },
    click_password(){
        this.setData({showPassword:false,showContent:true});
    },
    click_edit(){
        this.setData({showContent:false,showEditContent:true});
    },
    click_save(){
        this.setData({showContent:true,showEditContent:false});
    },
    click_changePassword(){
        this.setData({showContent:false,showChangePassword:true});
    },
    click_savePassword(){
        this.setData({showContent:true,showChangePassword:false});
    }
});
